package com.tm.media.login.controller;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * @Author Ly
 * @Data 2023/2/15 16:14
 * @ClassName wqeqweqw
 */
public class wqeqweqw {
        public static void main(String[] args){
            int taijie = taijie(20);
            System.out.println(taijie);
        }
    public static int taijie(int taijie1) {
            if(taijie1<=1){
                return 1;
            }
        int count=  taijie(taijie1-9)+taijie(taijie1-10);
        return count;
    }
        public static void jt(int tou,int jiao) {
            //鸡的数量
            for(int i = 0; i<= tou;i++) {
                //兔的数量
                int j = tou - i;
                if(jiao == 2*i + 4*j) {
                    System.out.println("有"+i+"只鸡，"+j+"只兔");
                    return;  //直接结束方法
                }
            }
            System.out.println("输入的数量有问题");
        }
}
